import service from '@/utils/request'

// @Tags DesignDrawingCategory
// @Summary 创建设计图纸分类库
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.DesignDrawingCategory true "创建设计图纸分类库"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}"
// @Router /designDrawingCategory/createDesignDrawingCategory [post]
export const createDesignDrawingCategory = (data) => {
  return service({
    url: '/designDrawingCategory/createDesignDrawingCategory',
    method: 'post',
    data
  })
}

// @Tags DesignDrawingCategory
// @Summary 删除设计图纸分类库
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.DesignDrawingCategory true "删除设计图纸分类库"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /designDrawingCategory/deleteDesignDrawingCategory [delete]
export const deleteDesignDrawingCategory = (params) => {
  return service({
    url: '/designDrawingCategory/deleteDesignDrawingCategory',
    method: 'delete',
    params
  })
}

// @Tags DesignDrawingCategory
// @Summary 批量删除设计图纸分类库
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除设计图纸分类库"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /designDrawingCategory/deleteDesignDrawingCategory [delete]
export const deleteDesignDrawingCategoryByIds = (params) => {
  return service({
    url: '/designDrawingCategory/deleteDesignDrawingCategoryByIds',
    method: 'delete',
    params
  })
}

// @Tags DesignDrawingCategory
// @Summary 更新设计图纸分类库
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.DesignDrawingCategory true "更新设计图纸分类库"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /designDrawingCategory/updateDesignDrawingCategory [put]
export const updateDesignDrawingCategory = (data) => {
  return service({
    url: '/designDrawingCategory/updateDesignDrawingCategory',
    method: 'put',
    data
  })
}

// @Tags DesignDrawingCategory
// @Summary 用id查询设计图纸分类库
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query model.DesignDrawingCategory true "用id查询设计图纸分类库"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /designDrawingCategory/findDesignDrawingCategory [get]
export const findDesignDrawingCategory = (params) => {
  return service({
    url: '/designDrawingCategory/findDesignDrawingCategory',
    method: 'get',
    params
  })
}

// @Tags DesignDrawingCategory
// @Summary 分页获取设计图纸分类库列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取设计图纸分类库列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /designDrawingCategory/getDesignDrawingCategoryList [get]
export const getDesignDrawingCategoryList = (params) => {
  return service({
    url: '/designDrawingCategory/getDesignDrawingCategoryList',
    method: 'get',
    params
  })
}
